// 欢迎页面
Page({
    data: {
        indicatorDots: true,
        autoplay: true,
        interval: 3000,
        duration: 1000,
        bannerList: [
            { id: 1, url: '/static/images/home@selected.png' },
            { id: 2, url: '/static/images/category@selected.png' },
            { id: 3, url: '/static/images/my@selected.png' }
        ]
    },
    onLoad: function(options) {
        // 页面加载
    },
    // 跳转到登录页
    goToLogin: function() {
        wx.redirectTo({
            url: '/pages/auth/login/login'
        });
    },
    // 跳转到首页
    goToIndex: function() {
        wx.switchTab({
            url: '/pages/index/index'
        });
    }
})